﻿using System;
using System.Collections.Generic;
using System.Xml;
using System.Web;

namespace Lswweb.Domain.ResourceConfiguration
{
    public class ResourceStrings : ResourceBase<string, string>
    {
        public ResourceStrings(string filePath) : base(filePath) {}

        protected override KeyValuePair<string, string> GetPairByXmlNode(XmlNode node)
        {
            string key = node.Attributes["name"].Value;
            string value = node.InnerXml.Replace("nbsp;", "&nbsp;");

            return new KeyValuePair<string, string>(key, value);
        }
    }
}
